public class SendTask {
    private String no1;
    private double weight;
    public SendTask(String no1,double d) {
    	this.setNo(no1);
    	this.setWeight(d);
    }
	public String getNo() {
		return no1;
	}
	public void setNo(String no) {
		this.no1 = no;
	}
	public double getWeight() {
		return weight;
	}
	public void setWeight(double weight) {
		this.weight = weight;
	}
    public void sendBefore(){
    	System.out.println("订单开始处理，仓库开始验货...\n货物重量:"+getWeight()+"kg\n订单已发货\n快递单号:"+getNo()+"\n\n");
    }
    public void send(Transportation t,GPS tool) {
    	t.transport();
    	System.out.println("京东快递运输中......\n货物当前坐标为"+tool.showCoordinate()+"\n\n");
    }
    public void sendAfter(Transportation t){
    	System.out.println("货物运输已完成\n运货人"+t.getChargePeople()+"所驾驶编号为"+t.getNo()+"的"+t.getModel()+"已归还！");
    }   
}

